import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        if(num <= 0) {
            System.out.println("输入异常");
            return;
        }
        sc.nextLine();
        for(int i = 0; i < num; i++) {
            String str = sc.nextLine();
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < str.length(); j++) {
                int ch = str.charAt(j) + 1;
                if(ch == 91) {
                    ch = 65;
                }
                sb.append((char)ch);
            }
            System.out.println("String #" + (i + 1));
            System.out.println(sb);
            System.out.println();
        }
    }
}
